﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace pufflesweb
{
    public partial class Aindex : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            PModel.Admin admin = new PModel.Admin();

            admin = (PModel.Admin)PF.SessionHelper.GetSession("admin");

            if (admin != null)
            {
                this.admin.Text = admin.Aname;
            }
            else
            {
                PF.JsHelper.AlertAndRedirect("尚未登录！", "Alogin.aspx");
            }
        }
    }
}